package cn.edu.scau.cmi.chenxiaoqin.spring.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ApplicationContextUtil {
    static ApplicationContext applicationContext;
    
    public static ApplicationContext getApplication() {
    	if(applicationContext==null) {
    		applicationContext=new ClassPathXmlApplicationContext("applicationContext.xml");
    	}
    	return applicationContext;
    }
}
